﻿
#region USING

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

#endregion

namespace Learning.ConwaysGameOfLife.Tests
{
    [TestFixture]
    public class LifeRuleOne
    {
		#region Constructors (1) 

        public LifeRuleOne()
        {
        }

		#endregion Constructors 

		#region Methods (1) 

		// Public Methods (1) 

        [Test]
        [Ignore("Until Refactoring and adding modification for the grid")]
        public void CellAtR2C3With0NeighborsAliveWillDieInTheNextGeneration()
        {
            List<Cordinate> intialAliveCells = new List<Cordinate>();
            intialAliveCells.Add(new Cordinate(2, 3));

            GameOfLife game = new GameOfLife(10, intialAliveCells);

            Assert.That(game.GetCellState(new Cordinate(2, 3)), Is.EqualTo(CellState.Alive));

            game.AdvanceToNextGeneration();

            Assert.That(game.GetCellState(new Cordinate(2, 3)), Is.EqualTo(CellState.Dead));
        }

		#endregion Methods 
    }
}